﻿<Window x:Class="Zx.JsonV.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Zx Json Viewer" Height="396" Width="621" FontFamily="Consolas" Icon="/Zx.JsonV;component/Images/icon.png">
    <Grid>
        <TabControl Name="tabControl1" Margin="12">
            <TabItem Header="Source" Name="tabItem2">
                <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                    <TextBox Margin="5,35,6,6" Name="tbSource" AcceptsReturn="True" AcceptsTab="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
                    <Button Content="View" Height="23" HorizontalAlignment="Left" Margin="6,6,0,0" Name="btnView" VerticalAlignment="Top" Width="75" Click="btnView_Click" />
                    <Button Content="Format" Height="23" HorizontalAlignment="Left" Margin="87,6,0,0" Name="btnFormat" VerticalAlignment="Top" Width="75" Click="btnFormat_Click" />
                </Grid>
            </TabItem>
            <TabItem Header="View" Name="tabItem1">
                <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="322" />
                        <ColumnDefinition Width="243*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="146*" />
                        <RowDefinition Height="156*" />
                    </Grid.RowDefinitions>
                    <TreeView Margin="6,6,14,6" Grid.RowSpan="2" Name="treeViewer" SelectedItemChanged="treeViewer_SelectedItemChanged" />
                    <GridSplitter HorizontalAlignment="Right" Margin="0,6" Name="gridSplitter1" Width="8" ShowsPreview="True" Grid.RowSpan="2" />

                    <GridSplitter Name="gridSplitter2" ResizeDirection="Rows" ResizeBehavior="CurrentAndNext" ShowsPreview="True" Height="8" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Grid.Column="1" Margin="0,0,6,0" />
                    <TreeView Margin="6,6,6,14"  Grid.Column="1" Name="subTreeViewer" SelectedItemChanged="subTreeViewer_SelectedItemChanged"/>
                    <TextBox Grid.Row="1"  Grid.Column="1" Margin="6,6,6,7" Name="textBox1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
